﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Xml.Linq;

public partial class admintractor_admin : System.Web.UI.MasterPage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            
           
        }
    }
    public void loadmenu(UsersEntities use)
    {
        int role_id = use._roleID;
        int l = Option.menu.Length / 3;
        if (role_id == 1)//admin
        {
            for (int i = 0; i < l; i++)
            {
                Response.Write("<tr><td><a href=\"" + Option.menu[i, 1].ToString() + "\">" + Option.menu[i, 2].ToString());
                Response.Write("</a></td></tr>");
            }
        }
        else
        {

        }
    }
}
